package Class.Advance.MethodReference.ReferMemberMethod.ThisOrSuperClass;

import java.util.Arrays;

public class KidClass extends FatherClass{
    public boolean kidUpperZeroFilter(int a) {
        return a > 0;
    }

    public int[] kidAchievement(int[] arr) {
        return Arrays.stream(arr).filter(this::kidUpperZeroFilter).toArray();
    }

    public int[] fatherAchievement(int[] arr) {
        return Arrays.stream(arr).filter(super::fatherUpperZeroFilter).toArray();
    }
}
